﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类LOG_INFO
     ///</summary>
     public class LOG_INFO
     {
         private int __ID=0 ;
         private string __JCLSH=string.Empty ;
         private string __Category=string.Empty ;
         private string __Name=string.Empty ;
         private string __FS_Infor=string.Empty ;
         private string __JS_Infor=string.Empty ;
         private string __Log_Infor=string.Empty ;
         private string __FunName=string.Empty ;
         private DateTime? __LogTime=null ;
         private string __IPAddress=string.Empty ;
         private string __HostName=string.Empty ;
         private string __OpName=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public LOG_INFO()
         {
             this.__Changed.Add("ID",false);
             this.__Changed.Add("JCLSH",false);
             this.__Changed.Add("Category",false);
             this.__Changed.Add("Name",false);
             this.__Changed.Add("FS_Infor",false);
             this.__Changed.Add("JS_Infor",false);
             this.__Changed.Add("Log_Infor",false);
             this.__Changed.Add("FunName",false);
             this.__Changed.Add("LogTime",false);
             this.__Changed.Add("IPAddress",false);
             this.__Changed.Add("HostName",false);
             this.__Changed.Add("OpName",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__ID =0;
             this.__JCLSH =string.Empty;
             this.__Category =string.Empty;
             this.__Name =string.Empty;
             this.__FS_Infor =string.Empty;
             this.__JS_Infor =string.Empty;
             this.__Log_Infor =string.Empty;
             this.__FunName =string.Empty;
             this.__LogTime =null;
             this.__IPAddress =string.Empty;
             this.__HostName =string.Empty;
             this.__OpName =string.Empty;
             this.__Changed["ID"] = false;
             this.__Changed["JCLSH"] = false;
             this.__Changed["Category"] = false;
             this.__Changed["Name"] = false;
             this.__Changed["FS_Infor"] = false;
             this.__Changed["JS_Infor"] = false;
             this.__Changed["Log_Infor"] = false;
             this.__Changed["FunName"] = false;
             this.__Changed["LogTime"] = false;
             this.__Changed["IPAddress"] = false;
             this.__Changed["HostName"] = false;
             this.__Changed["OpName"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[ID]的数据
         /// </summary>
         public int ID
         {
              set{ __ID = value; __Changed["ID"] = true;}
              get{return __ID;}
         }
         /// <summary>
         ///设置或获取类中的[JCLSH]的数据
         /// </summary>
         public string JCLSH
         {
              set{ __JCLSH = value.Replace("'","’"); __Changed["JCLSH"] = true;}
              get{return __JCLSH;}
         }
         /// <summary>
         ///设置或获取类中的[Category]的数据
         /// </summary>
         public string Category
         {
              set{ __Category = value.Replace("'","’"); __Changed["Category"] = true;}
              get{return __Category;}
         }
         /// <summary>
         ///设置或获取类中的[Name]的数据
         /// </summary>
         public string Name
         {
              set{ __Name = value.Replace("'","’"); __Changed["Name"] = true;}
              get{return __Name;}
         }
         /// <summary>
         ///设置或获取类中的[FS_Infor]的数据
         /// </summary>
         public string FS_Infor
         {
              set{ __FS_Infor = value.Replace("'","’"); __Changed["FS_Infor"] = true;}
              get{return __FS_Infor;}
         }
         /// <summary>
         ///设置或获取类中的[JS_Infor]的数据
         /// </summary>
         public string JS_Infor
         {
              set{ __JS_Infor = value.Replace("'","’"); __Changed["JS_Infor"] = true;}
              get{return __JS_Infor;}
         }
         /// <summary>
         ///设置或获取类中的[Log_Infor]的数据
         /// </summary>
         public string Log_Infor
         {
              set{ __Log_Infor = value.Replace("'","’"); __Changed["Log_Infor"] = true;}
              get{return __Log_Infor;}
         }
         /// <summary>
         ///设置或获取类中的[FunName]的数据
         /// </summary>
         public string FunName
         {
              set{ __FunName = value.Replace("'","’"); __Changed["FunName"] = true;}
              get{return __FunName;}
         }
         /// <summary>
         ///设置或获取类中的[LogTime]的数据
         /// </summary>
         public DateTime? LogTime
         {
              set{ __LogTime = value; __Changed["LogTime"] = true;}
              get{return __LogTime;}
         }
         /// <summary>
         ///设置或获取类中的[IPAddress]的数据
         /// </summary>
         public string IPAddress
         {
              set{ __IPAddress = value.Replace("'","’"); __Changed["IPAddress"] = true;}
              get{return __IPAddress;}
         }
         /// <summary>
         ///设置或获取类中的[HostName]的数据
         /// </summary>
         public string HostName
         {
              set{ __HostName = value.Replace("'","’"); __Changed["HostName"] = true;}
              get{return __HostName;}
         }
         /// <summary>
         ///设置或获取类中的[OpName]的数据
         /// </summary>
         public string OpName
         {
              set{ __OpName = value.Replace("'","’"); __Changed["OpName"] = true;}
              get{return __OpName;}
         }
    }
}
